<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Expert extends Model
{
    use HasFactory,SoftDeletes;
    //position：职称，
    //profile：简介，
    //department：科室，
    //duties：职务，
    //education:教育
    protected $fillable=[
        'name',
        'position',
        'profile','duties','thumb','hospital','education','department'];
    public function video(){
        return $this->hasMany(Video::class,'expert_id','id');
    }

}
